import request from '@/utils/request'

export const getDepartMentAPI = () => request.get('/company/department')

export const getUserListAPI = () => request.get('/sys/user/simple')

export const addDeptAPI = (data) => request.post('/company/department', data)
export const editDeptAPI = (id) => request.get(`/company/department/${id}`)

export const updateDepartMentAPI = (data) => request.put(`/company/department/${data.id}`, data)

